package com.asianrapid.demo.controller;

import com.asianrapid.demo.util.RedisDaoUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Auther: 迟家鑫
 * @Date: 2018/7/2 09:46
 * @Description:
 */
@RestController
public class TestController {

    @Resource
    RedisDaoUtils redisDaoUtils;

    @GetMapping("/set")
    public String setValue(String key) {
        redisDaoUtils.setKey(key,"abcd");
        return redisDaoUtils.getValue(key);
    }
}
